<HeaderScope/>
<Toolbar>
  <ToolbarActions>
  {{#if model}}
    <ToolbarDownloadButton
      @actionText="Download CA cert"
      @extension="pem"
      @filename={{concat model.ca.id "-ca"}}
      @data={{model.ca.caPem}}
    />
  {{/if}}
    <ToolbarLink
      @params={{array "configure"}}
      data-test-kmip-link-configure
    >
     Configure
    </ToolbarLink>
  </ToolbarActions>
</Toolbar>
{{#if model}}
  <FieldGroupShow @model={{model}} />
  <InfoTableRow @label="CA PEM" @value={{model.ca.caPem}}>
    <MaskedInput
      @value={{model.ca.caPem}}
      @displayOnly={{true}}
      @allowCopy={{true}}
    />
  </InfoTableRow>
{{else}}
  <EmptyState
    @title="No configuration for this secrets engine"
    @message="We'll need to configure a few things before getting started."
  >
    {{#link-to "configure"}}
      Configure
    {{/link-to}}
  </EmptyState>
{{/if}}
